﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using System.Configuration;

namespace NMoq.Core.UnitTest
{
    public class StrategyData : NamedConfigurationElement
    {
        private const string TypeProperty = "type";
        private const string DataProviderProperty ="dataProvider";

        public StrategyData()
            : base()
        { 
        }

        [ConfigurationProperty(TypeProperty ,IsRequired =true )]
        public string Type
        {
            get
            {
                return (string)this[TypeProperty];
            }
            set
            {
                this[TypeProperty] = value;
            }
        }

        [ConfigurationProperty (DataProviderProperty ,IsRequired =false  )]
        public DataProviderData DataProvider
        {
            get
            {
                return (DataProviderData )this[DataProviderProperty ];
            }
            set
            {
                this[DataProviderProperty] = value;
            }
        }
    }
}
